// (c) 2007 Messaging Logic. All Rights Reserved.
package org.xi8ix.loader;

import org.mortbay.jetty.AbstractConnector;
import org.mortbay.io.Buffer;

import java.io.IOException;

/**
 * @author Iain Shigeoka
 */
public class JettyNoopConnector extends AbstractConnector {
    public void open() throws IOException {
    }

    public void close() throws IOException {
    }

    public int getLocalPort() {
        return 0;
    }

    public Object getConnection() {
        return null;
    }

    protected Buffer newBuffer(int i) {
        return null;
    }

    protected void accept(int i) throws IOException, InterruptedException {
        // Loop forever sleeping...
        while(System.currentTimeMillis() > 0){
            Thread.sleep(Long.MAX_VALUE);
        }
    }
}
